package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.FoodsInfo;
import com.itheima.pojo.SportsInfo;

import java.util.List;

public interface KnowledgeBaseService {
    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    PageResult pageQuery1(Integer currentPage, Integer pageSize, String queryString);

    void addSportInfo(List<SportsInfo> sportsInfosList);

    void addFoodInfo(List<FoodsInfo> foodsInfoList);

    FoodsInfo findFoodById(Integer id);

    SportsInfo selectSportById(Integer id);

    void edit(FoodsInfo foodsInfo);

    void delete(Integer id);

    void add(FoodsInfo foodsInfo);
    void addSport(SportsInfo sportsInfo);

    void editSport(SportsInfo sportsInfo);

    void deleteSport(Integer id);
}
